package com.chengma.service.impl;

import java.util.List;

import com.chengma.domain.TbUserCollectedComment;
import com.chengma.mapper.TbUserCollectedCommentMapper;
import com.chengma.service.ITbUserCollectedCommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 用户收藏评论记录Service业务层处理
 * 
 * @author tck
 * @date 2025-03-19
 */
@Service
public class TbUserCollectedCommentServiceImpl implements ITbUserCollectedCommentService
{
    @Autowired
    private TbUserCollectedCommentMapper tbUserCollectedCommentMapper;

    /**
     * 查询用户收藏评论记录
     * 
     * @param username 用户收藏评论记录主键
     * @return 用户收藏评论记录
     */
    @Override
    public TbUserCollectedComment selectTbUserCollectedCommentByUsername(String username)
    {
        return tbUserCollectedCommentMapper.selectTbUserCollectedCommentByUsername(username);
    }

    /**
     * 查询用户收藏评论记录列表
     * 
     * @param tbUserCollectedComment 用户收藏评论记录
     * @return 用户收藏评论记录
     */
    @Override
    public List<TbUserCollectedComment> selectTbUserCollectedCommentList(TbUserCollectedComment tbUserCollectedComment)
    {
        return tbUserCollectedCommentMapper.selectTbUserCollectedCommentList(tbUserCollectedComment);
    }

    /**
     * 新增用户收藏评论记录
     * 
     * @param tbUserCollectedComment 用户收藏评论记录
     * @return 结果
     */
    @Override
    public int insertTbUserCollectedComment(TbUserCollectedComment tbUserCollectedComment)
    {
        return tbUserCollectedCommentMapper.insertTbUserCollectedComment(tbUserCollectedComment);
    }

    /**
     * 修改用户收藏评论记录
     * 
     * @param tbUserCollectedComment 用户收藏评论记录
     * @return 结果
     */
    @Override
    public int updateTbUserCollectedComment(TbUserCollectedComment tbUserCollectedComment)
    {
        return tbUserCollectedCommentMapper.updateTbUserCollectedComment(tbUserCollectedComment);
    }

    /**
     * 批量删除用户收藏评论记录
     * 
     * @param usernames 需要删除的用户收藏评论记录主键
     * @return 结果
     */
    @Override
    public int deleteTbUserCollectedCommentByUsernames(String[] usernames)
    {
        return tbUserCollectedCommentMapper.deleteTbUserCollectedCommentByUsernames(usernames);
    }

    /**
     * 删除用户收藏评论记录信息
     * 
     * @param username 用户收藏评论记录主键
     * @return 结果
     */
    @Override
    public int deleteTbUserCollectedCommentByUsername(String username)
    {
        return tbUserCollectedCommentMapper.deleteTbUserCollectedCommentByUsername(username);
    }
}
